Re: Resizing of border line of software
This is a start will have to be adjusted further.
Branch: feature_resize_gui
You are not logged in. Please login or register.
QElectroTech → Code → Resizing of border line of software
This is a start will have to be adjusted further.
Branch: feature_resize_gui
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..
I am thinking about using Qscrollarea
https://doc.qt.io/qt-5/qscrollarea.html
Or is there another solution?
Same, see translators tab.
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
}
Can I Merge Branch feature_resize_gui in to master?
add
- class Machine_info
- QScrollArea (sources/configdialog.cpp)
Yes off course you can merge it, thanks Simon.
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.
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.
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
Hello:
Today I've updated from master and I get the following building errorThank 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...
Thank you.
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
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
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 )
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?
Yes!
And for QET team use
git clone ssh://your TuxFamily login@git.tuxfamily.org/gitroot/qet/qet.git
ok
scorpio810 can you close this?
https://qelectrotech.org/bugtracker/view.php?id=195
Done.
Tried on Win10 VM 3840x2160 screen the widget is so very big, widget button is always on taskbar..
Maybe this:
just remove resize (..)
Edit
never mind, is even worse
ok for patch
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);
Is great on my UHD screen.
If you could merge it. ;-)
ok I'm still testing it on low reslousie screens ...
QElectroTech → Code → Resizing of border line of software
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.028 seconds (29% PHP - 71% DB) with 11 queries