Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Fullscreen over multiple screens (Qt 5.6)

    Unsolved
    13
    0 Votes
    13 Posts
    10k Views
    R
    @fritzw This didn't work for me I also had to add a flag for bypassing window manager, and worked fine if I set the geometry before widget.show() also didn't had to adjust the geometry for the taskbar(tested for KDE only) pyqt5 code: a = QApplication(sys.argv) widget = QLabel(None) widget.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.X11BypassWindowManagementHint) allScreens = QApplication.desktop().geometry() self.setGeometry(allScreens) widget.show() a.exec()
  • Can't access child method from parent?

    Solved
    4
    0 Votes
    4 Posts
    452 Views
    jsulmJ
    @Calicoder You also need to understand why you need to cast (you can also use dynamic_cast). Parent has no getValues() method, so you need to cast the pointer to ChildB to be able to call this method. And of course you need to check the pointer after casting as parent is not going to always be ChildB instance.
  • Problem using layouts ion QT Designer

    Solved
    5
    0 Votes
    5 Posts
    468 Views
    A
    I got it. Thanks a lot.
  • rubberband zooming in QGraphicsView

    Unsolved
    3
    0 Votes
    3 Posts
    923 Views
    JonBJ
    @seok There are lots of Google hits for qgraphicsview rubber band zoom. There is an old thread at https://www.qtcentre.org/threads/12836-Graphics-view-rubberband-zooming which says: Setting the drag mode as Rubberband drag, you will only be able to select items based on the selection. To implement the zoom based on rubberband, u will need to implement ur own rubberband. For this u need to catch the mouse events in scene or view. Based on this, once u get the rectangle after rubberbanding, u just nee to call fitInView() function. So I don't know if this is what you had in mind. I didn't read through the other hits, but I would if that is what I wanted to achieve.
  • "error: cannot find -lGL" after initial setup of Qt Creator on Linux

    Solved
    12
    0 Votes
    12 Posts
    5k Views
    R
    Thanks for replying, I managed to get it using the following command. [root@localhost ~]# ln -s /usr/lib64/libGL.so.1 /usr/ lib/libGL.so (solution link: http://c.biancheng.net/view/3901.html)
  • 0 Votes
    2 Posts
    190 Views
    jsulmJ
    @leonmarker Can you please explain in an understandable way what you want to do and what the problem is?
  • Cuda + qt qml app is compiled but not running

    Unsolved
    9
    0 Votes
    9 Posts
    531 Views
    Y
    @SGaist Hi, We are using rtx2080ti with cuda 11.5 with driver version 495.29.05
  • Howto start a member function asynchronously from QML

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    P
    I've created a QThread object inside myClass and started the thread upon invoking myClass.recvFromQML(..). It solved the freezing issue. Thanks
  • getting the coordinate value of points in Qchartview

    Unsolved
    1
    0 Votes
    1 Posts
    278 Views
    No one has replied
  • Qt Basics and Selection of Base class

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    Swati777999S
    @JKSH said in Qt Basics and Selection of Base class: @Swati777999 said in Qt Basics and Selection of Base class: Yes, it worked for me. Thanks. :) Great! Can you now explain why it works? this points to the parent object of the constructor. To display the contents of primWin widget , it has to be set as the central widget of the Qmainwindow.
  • Widgets with SizePolicy there is no effects

    Unsolved pyqt5 qsizepolicy qwidget
    5
    0 Votes
    5 Posts
    2k Views
    C
    @Pythonic-person said in Widgets with SizePolicy there is no effects: Do you mean taking the main window size and then change the widget size with the code? You either use one of the provided layout mechanisms, develop you your only layout implementation, or you do all the resizing of contained widgets yourself 1990's style. If you wish to do it yourself then you need to override the resizeEvent() of the container widget and resize the contained widgets yourself using whatever logic you see fit.
  • touch sensitivity adjustment

    Unsolved
    1
    0 Votes
    1 Posts
    296 Views
    No one has replied
  • Connection between Qt Design Studio and Qt Creator

    Unsolved
    1
    1 Votes
    1 Posts
    214 Views
    No one has replied
  • Copy and Paste into a QPlainTextEdit when data includes an image

    Solved
    4
    0 Votes
    4 Posts
    501 Views
    C
    I figured it out. Instead of using toPlainText to get the data I use to Html and store that. Works like a champ. Thanks again SGaist.
  • Some users get SSL error (only) on 5.15.2 (LTS)

    Unsolved openssl bug qnetworkreply qnetwork
    2
    0 Votes
    2 Posts
    657 Views
    SGaistS
    Hi, A minimal compilable example would be nice for the bug report. Did you also check with Qt 5.15.0 and 5.15.1 ? Just in case it something that changed with 5.15.2.
  • Custom scrollbar

    Unsolved
    2
    0 Votes
    2 Posts
    165 Views
    SGaistS
    Hi, Either subclass QScrollBar and reimplement the paintEvent method or QAbstractSlider.
  • QtSpeech in qt/git repo

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    SGaistS
    Hi, If you properly installed it, the same way as any other Qt module.
  • Can't set background color

    Unsolved paint qt5.11
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Where are you using that painter ?
  • How to fit QGrapicsView with QWidget (Taking the whole widget's size)

    Unsolved
    2
    0 Votes
    2 Posts
    332 Views
    SGaistS
    Hi, If you want to have that handled for you, you need to use layouts.
  • QUdpSocket broadcast messages with more ip address

    Unsolved
    2
    0 Votes
    2 Posts
    328 Views
    kshegunovK
    @Kaguro said in QUdpSocket broadcast messages with more ip address: If someone has more IP addresses (for virtualmachine etc...) then they didnt get any messages but if some has just one ip address then he could send messages to everyone and recieve from everyone. If we set QHostAddress::Broadcast to 10.0.10.255 (this is our IP range) then everything is working correctly for everyone. Sounds like you didn't bind to the correct address on the receiver side. So the question is how does it work? Well, you could use a multicast group with UDP, to mix and match the different interfaces you have defined.