Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • Help in qml

    1
    0 Votes
    1 Posts
    941 Views
    No one has replied
  • Qt Creator Embedded Debugging Setup

    8
    0 Votes
    8 Posts
    9k Views
    G
    when i go to Debug > Start Debugging > Attach to Remote Debug Server, and init the host and port, and all other attributes, I insert into debug mode, but the program does not stop in the breakpoints i put in the files on host. when i pause the debug it stop in assembler code. The output i get for the debug is: Could not load shared library symbols for 48 libraries, e.g. /usr/lib/libglib-2.0.so.0. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"?Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code.
  • [SOLVED] Center a QDialog in the middle of the MainWindow

    4
    0 Votes
    4 Posts
    17k Views
    V
    I think setting the size policy of the Dialog window is irrelevant to this issue...I have the horizontal and vertical set to fixed since I don't want to allow re-sizing of the dialog window. Usually the size policy is used when using a QLayout of some sort. From my understanding, this will not "center" the window. 1+1=2, I will try to override the show event and just set some public variables to the x and y values instead of calling the function, before the show and see if this works. Does the window size/geometry not get calculated until the showEvent() is called? I am adding widgets and what not in my constructor so I just figured it would be calculated once the constructor has completed. Thanks! Edit: I replaced the code I posted above into the show event and it worked perfectly. Thank you again.
  • 0 Votes
    1 Posts
    959 Views
    No one has replied
  • Kill QThreadPool

    4
    0 Votes
    4 Posts
    9k Views
    G
    Ok. Thanks for your suggestions.
  • QTableWidget drag and drop

    3
    0 Votes
    3 Posts
    3k Views
    M
    Hi I do need to override, as I need some custom behaviour of the drag and drop. I need to swap the elements inside a table using drag and drop... Still, why is mimeData() returning null if I provide a correct list? Is this bug known?
  • Limitations of the Qt Designer

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Signal slots not working when QApplication.exec

    14
    0 Votes
    14 Posts
    8k Views
    B
    Updated the BSP and the problem magically disappears! THANK GOD :)
  • Does Qt has this control?

    6
    0 Votes
    6 Posts
    2k Views
    G
    [quote author="lloydqt" date="1337747153"]Thanks. Will it be able to supports 1000s of cells? Isn't it better to implement in a windows paint event?[/quote] That depends :-) How many cells do you need? How often do you update them? In theory, QTableView supports this number of cells. But it depends on update frequency, hardware you run on etc to make that decission. Surely, you can do it in a more optimzed way by implementing a special widget by hand but it will also cost more :-)
  • QNetworkAccessManager in QThread

    3
    0 Votes
    3 Posts
    3k Views
    M
    Why are you putting the QNetworkAccessManager in its own thread? It is already asynchronous.
  • [Solved] Qt Border Color

    5
    0 Votes
    5 Posts
    25k Views
    S
    Kindly edit your first post and set the title as [Solved]. Thanks
  • How to fix the treeview on left hand side of main window.

    2
    0 Votes
    2 Posts
    6k Views
    B
    bq. Each widget returns a QSizePolicy that describes the horizontal and vertical resizing policy it prefers when being laid out. You can change this for a specific widget by changing its "QWidget::sizePolicy":http://qt-project.org/doc/qt-4.8/qwidget.html#sizePolicy-prop property. QSizePolicy contains two independent "QSizePolicy::Policy":http://qt-project.org/doc/qt-4.8/qsizepolicy.html#Policy-enum values and two stretch factors; one describes the widgets's horizontal size policy, and the other describes its vertical size policy. It also contains a flag to indicate whether the height and width of its preferred size are related. "source":http://qt-project.org/doc/qt-4.8/QSizePolicy.html
  • Q_NO_USING_KEYWORD

    5
    0 Votes
    5 Posts
    2k Views
    C
    Q_NO_USING_KEYWORD controls the use of the C++ "using" keyword for compilers that do not support, or incorrectly support, it. In this particular instance it affects the implementation, but not the availability, of indexOf() and lastIndexof() in QStringList. Q_NO_USING_KEYWORD is set for some truly ancient versions of GCC only. What GCC version are you running (gcc -v)? Exactly what errors or warnings do you get? See "src/corelib/global/qglobal.h" and "src/corelib/tools/qstringlist.h"
  • [Solved] Qt - CheckBox color

    2
    0 Votes
    2 Posts
    9k Views
    M
    Look "here":http://qt-project.org/doc/qt-4.8/stylesheet-examples.html for examples on how to use stylesheets for a variety of different widgets.
  • 0 Votes
    7 Posts
    16k Views
    N
    Oh okay, thanks!! I also found that doing @help(QtCore)@ for example on a python command line returns the versions of all. or windows: @c:\python32\python configure.py --version@ :) Hopefully this is helpful for someone
  • Linguist problem

    13
    0 Votes
    13 Posts
    6k Views
    S
    "Forums > International > Persian":http://qt-project.org/forums/viewforum/40/
  • Link against a widget library

    2
    0 Votes
    2 Posts
    941 Views
    D
    In short, you should not use plugin in such a way, though it will work if you have exported symbols properly. BTY, you had better distinguish widget library(whether you widget located) and designer plugin(used only by your designer). Don't mix them together.
  • QAbstractScrollArea scrolled rect

    1
    0 Votes
    1 Posts
    996 Views
    No one has replied
  • 0 Votes
    7 Posts
    4k Views
    S
    Hi, today I tried to run my sender process with QProcess::startDetached() and it worked without any problems. Starting the same sender process as a normal QProcess with the start method results in a segmentation fault after receiving a few packets. I post the corresponding code, maybe somebody got an idea what I am doing wrong. I am not sure if it makes any difference, but I am running that program under Linux. Line 49 is the one that works if I comment out line 48 instead. Any comments are appreciated! Thanks in advance! P.S.: I am quiet sure that line 46 is not necessay but as I am running out of ideas I also tried this. @ void ReceiverGui::startReceiver() { if (!settingsOk()) { return; } toogleStartStopButton(); //! Start network setupAndStartNetwork(); //! Determine receiver executable and working directory QString receiverFilePath = this->settings->value("receiverLocation").toString(); QString receiverWorkingDirectory; QStringList receiverPathParts = receiverFilePath.split("/"); for (int i = 0; i < receiverPathParts.size()-1; i++) { receiverWorkingDirectory.append(receiverPathParts.at(i)); receiverWorkingDirectory.append("/"); } QString receiverExecutableFile = "./" + receiverPathParts.at(receiverPathParts.size()-1); QStringList arguments; //! Start the receiver if (this->ui.settingsTabWidget->getLastSelectedMode() == SettingsTabWidget::EXTERNAL || this->ui.settingsTabWidget->getLastSelectedMode() == SettingsTabWidget::FILE) { //! determine file to decode QString inputFilePath; if (this->ui.settingsTabWidget->getLastSelectedMode() == SettingsTabWidget::EXTERNAL) { inputFilePath = this->ui.settingsTabWidget->getInputFileNonEvaluationPath(); } else if(this->ui.settingsTabWidget->getLastSelectedMode() == SettingsTabWidget::FILE) { inputFilePath = this->ui.settingsTabWidget->getInputFileEvaluationPath(); } inputFilePath = inputFilePath.left(inputFilePath.size()-6); arguments << inputFilePath; // determine plp number int plpNumber = this->ui.settingsTabWidget->getPlpNumber(); arguments << QString::number(plpNumber); // determine xml config file QString configFilePath = this->settings->value("receiverConfigLocation").toString(); arguments << configFilePath; //! start the process receiverProcess->setProcessEnvironment(QProcessEnvironment::systemEnvironment()); receiverProcess->setWorkingDirectory(receiverWorkingDirectory); receiverProcess->start(receiverExecutableFile, arguments, QIODevice::ReadOnly); // QProcess::startDetached(receiverExecutableFile, arguments, receiverWorkingDirectory); //! works } else if (this->ui.settingsTabWidget->getLastSelectedMode() == SettingsTabWidget::REAL_TIME) { // ... } } @
  • How to handle click event on node of Treeview

    2
    0 Votes
    2 Posts
    3k Views
    V
    Third parameter of connect must be pointer to object which contain slot, so for you it must be pointer for MainWindow object, if you doing connect in MainWindow object you can use this.