Re: Resizing of border line of software

This is a start will have to be adjusted further.

Branch: feature_resize_gui

https://git.tuxfamily.org/qet/qet.git/l … resize_gui

Re: Resizing of border line of software

I 'll try to add https://github.com/jrfonseca/drmingw like Digikam for Windows build :
https://www.digikam.org/news/2018-10-31 … ouncement/
No compile in static mode I try to rebuild all MXE in shared mode..

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

I am thinking about using Qscrollarea
https://doc.qt.io/qt-5/qscrollarea.html

Or is there another solution?

Re: Resizing of border line of software

Same, see translators tab.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

this i have

/**
    Constructeur
    @param parent QWidget parent
*/

ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) {
 
    // liste des pages
    pages_list = new QListWidget();
    pages_list -> setViewMode(QListView::IconMode);
    pages_list -> setIconSize(QSize(128, 128));
    pages_list -> setMovement(QListView::Static);
    pages_list -> setMinimumWidth(168);
    pages_list -> setMaximumWidth(168);
    pages_list -> setSpacing(16);
    pages_list -> setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    // pages
    pages_widget = new QStackedWidget();
    // boutons
    buttons = new QDialogButtonBox(
                QDialogButtonBox::Ok
                |QDialogButtonBox::Cancel);
 
    //
    QScrollArea *scroll = new QScrollArea(this);
    scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    scroll->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
 
    QWidget *viewport = new QWidget(this);
    scroll->setWidget(viewport);
    scroll->setWidgetResizable(true);
 
    // layouts
    QHBoxLayout *hlayout1 = new QHBoxLayout(viewport);
    // add needed widgets to layout "hlayout1"
    hlayout1 -> addWidget(pages_list);
    hlayout1 -> addWidget(pages_widget);
 
    //add hlayout1 to widget
    viewport->setLayout(hlayout1);
 
    // Add a layout for QDialog
    QVBoxLayout *dialog_layout = new QVBoxLayout(this);
    dialog_layout->addWidget(scroll); // add scroll to the QDialog's layout
    dialog_layout -> addWidget(buttons);
    setLayout(dialog_layout);
 
    // connexion signaux / slots
    connect(buttons, SIGNAL(accepted()), this, SLOT(applyConf()));
    connect(buttons, SIGNAL(rejected()), this, SLOT(reject()));
    connect(pages_list, SIGNAL(currentRowChanged(int)),
        pages_widget, SLOT(setCurrentIndex(int)));
 
    Machine_info *mymachineinfo= new Machine_info(this);
    resize(mymachineinfo->get_max_screen_width(),
           mymachineinfo->get_max_screen_height());
 
#ifdef Q_OS_MACOS
    if (parent) {
        setWindowFlags(Qt::Sheet);
    }
#endif
}

Post's attachments

Screenshot_20200722_205059.png, 79.23 kb, 866 x 767
Screenshot_20200722_205059.png 79.23 kb, 237 downloads since 2020-07-22 

31 (edited by De-Backer 2020-07-22 21:11:55)

Re: Resizing of border line of software

Can I Merge Branch feature_resize_gui in to master?

add
- class Machine_info
- QScrollArea (sources/configdialog.cpp)

Re: Resizing of border line of software

Yes off course you can merge it, thanks Simon.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

done, it may be that there are still Widget that are too big in other places in the program, but the focus should now be that the QScrollArea is not asked if the screen is big enough.

Re: Resizing of border line of software

De-Backer wrote:

done, it may be that there are still Widget that are too big in other places in the program, but the focus should now be that the QScrollArea is not asked if the screen is big enough.

never mind, fix.

Re: Resizing of border line of software

Hello:
Today I've updated from master and I get the following building error

../electro/sources/machine_info.cpp:73:9: error: no declaration matches ‘int32_t Machine_info::get_max_screen_width()’
   73 | int32_t Machine_info::get_max_screen_width()
      |         ^~~~~~~~~~~~
../electro/sources/machine_info.cpp:73:9: note: no functions named ‘int32_t Machine_info::get_max_screen_width()’
In file included from ../electro/sources/machine_info.cpp:18:
../electro/sources/machine_info.h:27:7: note: ‘class Machine_info’ defined here
   27 | class Machine_info : public QObject
      |       ^~~~~~~~~~~~
../electro/sources/machine_info.cpp:82:9: error: no declaration matches ‘int32_t Machine_info::get_max_screen_height()’
   82 | int32_t Machine_info::get_max_screen_height()
      |         ^~~~~~~~~~~~
../electro/sources/machine_info.cpp:82:9: note: no functions named ‘int32_t Machine_info::get_max_screen_height()’
In file included from ../electro/sources/machine_info.cpp:18:
../electro/sources/machine_info.h:27:7: note: ‘class Machine_info’ defined here
   27 | class Machine_info : public QObject
      |       ^~~~~~~~~~~~
Makefile.Release:4826: recipe for target 'release/machine_info.o' failed
make[1]: *** [release/machine_info.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
make[1]: se sale del directorio '/home/damian/build-qelectrotech-Desktop-Release'
Makefile:40: recipe for target 'release' failed
make: *** [release] Error 2
18:45:55: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project qelectrotech (kit: Desktop)
When executing step "Make"

Thank you

36 (edited by De-Backer 2020-07-23 21:04:26)

Re: Resizing of border line of software

damianCaceres wrote:

Hello:
Today I've updated from master and I get the following building error

Thank you

updated from
https://github.com/qelectrotech/qelectr … or/network

unfortunately it runs behind see

https://git.tuxfamily.org/qet/qet.git/log/

The fix was pushed a few minutes later.
https://github.com/De-Backer/qelectrote … 532a025f20
but github is still lagging behind...

Re: Resizing of border line of software

Thank you.

38 (edited by De-Backer 2020-07-23 21:19:33)

Re: Resizing of border line of software

if you really need to have the last Commit
use

git fetch https://github.com/De-Backer/qelectrotech-source-mirror.git master
git log FETCH_HEAD

https://git-scm.com/docs/git-fetch#_examples

Re: Resizing of border line of software

A cron job (360 mins) syncs the remote GIT master (Tuxfamily) to the Github mirror, I just changed the timer to 60 mins now.

If you want the last Commit on master :

git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

Thanks to everyone for your support

QElectroTech V 0.80-DEV
Compilation : GCC 10.1.0
Built with Qt 5.9.5 - Date : Jul 24 2020 : 07:25:48 
Run with Qt 5.9.5 using 6 thread(s)
CPU : model name : Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz 
RAM Total : 7801 MB
RAM Available : 5468 MB
GPU : Intel Corporation Device 3e92 
OS : linux - x86_64 - Version : Ubuntu 18.04.4 LTS - Kernel : 5.3.0-51-generic
*** Qt screens *** 
( 1 : 1920 x 1080 ) 
( 2 : 1920 x 1080 ) 

Re: Resizing of border line of software

scorpio810 wrote:

A cron job (360 mins) syncs the remote GIT master (Tuxfamily) to the Github mirror, I just changed the timer to 60 mins now.

If you want the last Commit on master :

git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git

does this work without an account?

Re: Resizing of border line of software

Yes!

And for QET team use
git clone ssh://your TuxFamily login@git.tuxfamily.org/gitroot/qet/qet.git

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

ok
scorpio810 can you close this?
https://qelectrotech.org/bugtracker/view.php?id=195

Re: Resizing of border line of software

Done.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

Tried on Win10 VM  3840x2160 screen the widget is so very big, widget button is always on taskbar..

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Resizing of border line of software

Maybe this:

Post's attachments

Attachment icon 0001-Improve-resize-i_max_screen_-to-config-dialog.patch 910 b, 210 downloads since 2020-07-25 

Attachment icon dialog_size.png 414.13 kb, 79 downloads since 2020-07-25 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

47 (edited by De-Backer 2020-07-25 19:18:09)

Re: Resizing of border line of software

just remove resize (..)

Edit
never mind, is even worse

ok for patch

48 (edited by De-Backer 2020-07-25 22:00:52)

Re: Resizing of border line of software

scorpio810 wrote:

Maybe this:

The only thing is that with all screens this is 2/3,
while at low reslousie screens this just becomes too small.
What do you think of this:

setMaximumSize(mymachineinfo->i_max_screen_width(),
               mymachineinfo->i_max_screen_height());
    resize(1400,1000);

Post's attachments

Attachment icon 0001-Fix-widget-size.patch 891 b, 214 downloads since 2020-07-25 

Re: Resizing of border line of software

Is great on my UHD screen.
If you could merge it. ;-)

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

50 (edited by De-Backer 2020-07-25 22:09:24)

Re: Resizing of border line of software

ok I'm still testing it on low reslousie screens ...

Post's attachments

Attachment icon Screenshot_20200725_220855.png 148.14 kb, 80 downloads since 2020-07-25