Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 456.1k Posts
  • Q3D: creating custom geometry class C++

    Unsolved
    3
    0 Votes
    3 Posts
    436 Views
    V
    Thanks a lot! I've made what I planed[image: f010deb3-9d56-49aa-964d-086cd1d6b463.png] Now I just need to fix some minor bugs
  • Strange qt pushbutton behavior

    Unsolved
    4
    0 Votes
    4 Posts
    320 Views
    JonBJ
    @lagodolio said in Strange qt pushbutton behavior: @jsulm Hello... I changed my mouse and no more problems occour! LOL :)
  • Context menu text indentation

    Unsolved
    3
    0 Votes
    3 Posts
    274 Views
    A
    @Christian-Ehrlicher I see, thanks so much.
  • Dynamic Language Change

    Unsolved
    7
    0 Votes
    7 Posts
    673 Views
    J.HilkJ
    @Alpkan It's not, changeEvent has its root in QWidget not in QObject you can't simply name a function changeEvent in a non QWidget based class and expect it to behave like a QWidget. I think you want to notify your QObject based classes that a new language has been set and they should change their strings, right? You'll have to find a way to notify them yourself. There are countless ways, but - afaik - no ready made Qt ways
  • Connecting and reading data from multiple QTcpSockets with QTcpServer

    Solved
    4
    0 Votes
    4 Posts
    526 Views
    jsulmJ
    @cdecde57 There is no need for sender(). You're already using a lambda as slot, so simply capture the sender: connect(newConnection, &QTcpSocket::readyRead, this, [newConnection, this](){ reading(newConnection); });
  • How to change appearance of drop down area of QComboBox

    Solved
    2
    0 Votes
    2 Posts
    4k Views
    Pl45m4P
    @cerr Check out QComboBox's stylesheet options: https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox The drop down/ pop up menu is a QAbstractItemView which can be customized with stylesheet as well.
  • Problems to adjust QGridLayout to requirements

    Solved qgridlayout qtcreator 3.5.1 pyqt4
    5
    0 Votes
    5 Posts
    1k Views
    cerrC
    @nagesh Haha :boom: I knew it was something along these lines: "select combo box and expand horizontally in right direction it should occupy the empty space right to it" Shame on me and awesome! Thank you very much! lol I never asked that question, right? :D
  • Measuring frame rendering time

    Unsolved
    18
    0 Votes
    18 Posts
    2k Views
    mrjbomM
    @nagesh Got it! This is what I need. To be more precise, QOpenGLTimeMonitor () helped me. Thank you for your help.
  • Why is it QTCreator can't find QOpenGLVertexArrayObject

    Unsolved
    2
    0 Votes
    2 Posts
    180 Views
    mrjjM
    Hi What is the actual error ? #include <QOpenGLVertexArrayObject> should do it.
  • QTableView word wrap one column only

    Unsolved
    4
    0 Votes
    4 Posts
    423 Views
    SGaistS
    Hi and welcome to devnet, You might want to consider using a custom QStyledItemDelegate implementing the word wrap.
  • Update my application via internet ("Check for updates" functionality)

    Unsolved
    2
    0 Votes
    2 Posts
    256 Views
    SGaistS
    Hi, Like the one provided by the Qt Installer Framework ?
  • QGraphicsPixmapItem quality degraded when rotated

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Deploying resources

    Solved
    3
    0 Votes
    3 Posts
    222 Views
    F
    @jsulm Got it working now. Thanks a lot.
  • How can i collect them in a single if statement?

    Unsolved
    3
    0 Votes
    3 Posts
    219 Views
    JonBJ
    @suslucoder said in How can i collect them in a single if statement?: Is it a true approach that using or operand You certainly would not want to use an or here, since they do not execute the same statement as each other.
  • Cannot load mysql dll plugin on windows 10

    Unsolved
    5
    0 Votes
    5 Posts
    423 Views
    R
    @Christian-Ehrlicher said in Cannot load mysql dll plugin on windows 10: You have to make sure that the dependent libraries are in your PATH. There are numerous threads about this... searching helps. As I've said I've been searching and trying for over three weeks, I placed the dependencies in the system32 folder, I also placed them alongside the qsqlmysql.dll to be sure, I then checked the dll using a dependency checker and everything seems fine, so I think all the dependencies are installed and detected correctly but there is something else going on.
  • Using QTcpSocket can I write a Tcp message with zero payload to server ?

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    S
    Hi @KroMignon I am using Windows 10 operating system. I changed the parameters from WSAIoctl after reading the documentation. Upon using the following function after setting alive parameters i am able to receive disconnect signal. WSAIoctl(fd, SIO_KEEPALIVE_VALS, &alive, sizeof(alive), NULL, 0, &dwBytesRet, NULL, NULL) I tried powering off the server machine and my client application detects the state. In addition I changed the parameters for alive to detect the disconnect little early. alive.onoff = TRUE; // turn it on alive.keepalivetime = 600; // delay (ms) between requests, default is 2h (7200000) alive.keepaliveinterval = 600; // delay between "emergency" ping requests, their number (6) is not configurable Thanks a lot finally it works !!!
  • How to use QPushButton clicked(), pressed() and released() events

    Unsolved
    6
    0 Votes
    6 Posts
    7k Views
    jsulmJ
    @phnhung98 Ah, just realised you're using the auto-connect feature. This feature is known for being error prone, it is safer to do the connections manually in code.
  • This topic is deleted!

    Unsolved
    13
    0 Votes
    13 Posts
    75 Views
  • My First Project Simple Hello World and it doen't run...

    Solved
    4
    0 Votes
    4 Posts
    317 Views
    H
    @J-Hilk Thanks. This did the trick.