Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.1k Posts
  • Serial Port In windows

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    aha_1980A
    @saeidparand but did the example work correctly?
  • Can we see Qt6?

    Solved
    10
    0 Votes
    10 Posts
    679 Views
    Pablo J. RoginaP
    @mpahlevanzadeh said in Can we see Qt6?: but I fear to Qt5 will be deprecated. There is people still using Qt 4.x if you mind...
  • Arranging dock widgets - controlling behavior after re-docking widgets

    Unsolved
    3
    1 Votes
    3 Posts
    620 Views
    M
    @Dariusz I have exactly the same issue, how did you solved it in the end?
  • Qt3D: set line width for Qt3DRender::QGeometryRenderer::Lines

    Unsolved
    1
    0 Votes
    1 Posts
    430 Views
    No one has replied
  • Problem while applying filter on QTableView with a button column

    Solved
    18
    0 Votes
    18 Posts
    5k Views
    L
    @VRonin It is implemented, working good. However, I have an issue. When setItemDelegateForColumn is used, all created buttons at the column have the same properties (the last row button's properties). How will I know the row number of the button I clicked? I create the buttons as following: ButtonDelegateTableView * addIntervalButton = new ButtonDelegateTableView(ui->tableView, project, wellName, rowNumber); And, when I clicked on the button at the first row, I get the properties (well name, row number etc.) of the last row buttons. [image: d6b79573-7bc0-47b9-b566-d9d9dd74e9fa.PNG]
  • This topic is deleted!

    Unsolved
    2
    -1 Votes
    2 Posts
    9 Views
  • How to get the scene loader to generate tangent space for a loadable model?

    Unsolved
    1
    0 Votes
    1 Posts
    156 Views
    No one has replied
  • How to convert const QVector<quint32> to vector<int>.

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    JonBJ
    @JKSH , @J-Hilk Pointer size is increased to 64 but integer size remains 32 on today's common 64-bit desktop architectures. Yes, now I vaguely remember reading this, I am glad @J-Hilk shared my mis-assumption! This is what comes of my being forced to use Python for Qt or JavaScript over so many years now. Ignorance of underlying type sizes! It has been a long time since sizeof(int) != sizeof(long) and sizeof(int) != sizeof(void*), probably not since the initial move from 16-bit to 32-bit architecture! :)
  • how to link the object file to a Qt

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    mrjjM
    @Asha Hi You can just include the wanted .cpp in the .pro file or make file or what you use to compile. You can also link it into the porject as an .o file. However, if you have a main in the new .cpp that wont work as there already is a main for the qt app. Im not sure what you mean by "while executing this object file getting the result in command prompt ,not in vnc platform.."
  • FastBuild and qmake?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    S
    The post is already a few years old. However, there does not seem to be any solution. We started using FASTBuild for our qmake-based project. Setting it up for the first time is quite involved. We managed to get it running anyway. I cleaned up our FASTBuild setup for use as a template in other projects and put it on GitHub: https://github.com/SimonSchroeder/QMake2Fastbuild Currently, the setup is for Visual Studio 2013 with WinSDK 8.1 and Qt 5.9.1. It is mostly modular, such that it should be quite easy to adapt it to different versions of VS, WinSDK and Qt. It supports *.ui files, mocables and resources files. Most of the necessary information (files in project, defines, include paths, ...) can be generated through 3 scripts. Only libraries have to be setup by hand in the FASTBuild configuration files. The batch scripts are also easily portable to Linux. For an appropriate setup of compilers you can have look at FASTBuild's own FASTBuild files. I hope this helps anyone. Please let me know if you were able to successfully use the files provided on GitHub. If you add other versions of VS, WinSDK and/or Qt please consider to contribute to the repository.
  • 0 Votes
    6 Posts
    471 Views
    Christian EhrlicherC
    @Sekhar Then please mark the topic as solved, thx
  • Multi Threading in QT

    Unsolved
    3
    0 Votes
    3 Posts
    243 Views
    J.HilkJ
    @SURYA-P you don't Qt Ui component are not allowed to live in different threads.
  • QUDPSocket in bound state

    Unsolved
    2
    0 Votes
    2 Posts
    574 Views
    Christian EhrlicherC
    @supratik123 said in QUDPSocket in bound state: client is returning the number of bytes written even when the server program is not running. Is it something different from Connected state. Since UDP communication is stateless I don't see what should be wrong with this.
  • What does it mean when an entire function is a slot?

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    JKSHJ
    @SGaist said in What does it mean when an entire function is a slot?: Technically speaking, emit is replaced by nothing (take a look at the macro). However, it does make the code more understandable with regard to what should happen at that point. It make also clear that you are calling a signal. +1 In other words... void MyClass::func() { emit mySignal(); // [1] mySignal(); // [2] } ... [1] and [2] are exactly the same from a compiler's point of view. However, [2] is clearer to a human reader.
  • How to use anti-aliasing on QGLWidget?

    Solved opengl qglwidge qopenglwidget antialiasing
    8
    0 Votes
    8 Posts
    5k Views
    Chris KawaC
    @BoboFuego said in How to use anti-aliasing on QGLWidget?: how can I add MyWidget.h as promoted class for it in the MainWindow constructor? Promoted class won't allow you to pass parameters to a constructor. Just don't add it in the designer at all. Lets say you've got this designer_widget as a central widget of the mian window in the designer. Just delete it entirely and add it in code: MainWindow::Mainwindow(QWidget* parent) : QMainWindow(parent) { ui->setupUi(this); MyWidget* gl_widget = new MyWidget(); setCentralWidget(gl_widget); }
  • How to Serialize SQL Result

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    M
    @JonB Our problem is similar but not same. In both situation, data is there, inside block. But he tries to cast serialized binary data to a QString, that's why he cannot see the string. He should have used >> operator to create QString from QDataStream. Actually I did like that but somehow QString ate all data inside block. If you check binary representation of block there is 1A before first letter 's'. 1A is aqual to 26 in decimal. My string sample string has 13 characters. 26 shows byte count probably. Actually this is mentioned in Qt 4 serializing page but not in Qt 5 page. https://doc.qt.io/archives/qt-4.8/datastreamformat.html I thought >> operator of QDataStream does this job for us but it seems it doesn't. I need to handle this situation by myself it seems.
  • Grid layout and QGroupBox

    Solved
    6
    0 Votes
    6 Posts
    652 Views
    SGaistS
    If I may, I'd recommend using QFormLayout in place of QGridLayout in this case. That will simplify your life.
  • QDialog/QWidget is closing after init

    Solved
    6
    0 Votes
    6 Posts
    470 Views
    F
    Sorry guys...you two are right... I'm doing this wrong... thanks!
  • QtCreator - compile statistics gone...

    Unsolved qtcreator
    1
    0 Votes
    1 Posts
    239 Views
    No one has replied
  • Qt Debugger stops without breakpoint

    Solved
    3
    0 Votes
    3 Posts
    567 Views
    F
    @JonB I don't know... Today I opened the Qt Creator IDE and it works without this problem...thanks for your help...