ZhN
Zhasulan NurgozhinovDec. 8, 2018, 7:54 a.m.

Сохранение данных приложения после закрытия

GUI, срочно, Python 3, PyQt5

как сохранить данные приложения после закрытие и как сортировать лист по имени если имена одинаковые то по дате рождения,заранее спасибо

задача примерно таккая:

Write a program with a well designed, developed and tested GUI, which can handle and show information about bank accounts and clients. The GUI provide facilities to add new clients with their data, like name, date of birth, unique client identifier (program generates and fills up automatically), account number (2x8 digits) and balance. So the user can add new client, modify and delete the existent items via GUI if he/she wants it. The software can handle the all possible exception and gives any information about them for the users. The GUI is contained a list view in where the clients are sorted according to their names and date of birth (if the names are equals). The user can filter the clients based on the amount of their money. The software save the collected data into file before closing and load back when it starts.

# -*- coding: utf-8 -*-



# Form implementation generated from reading ui file 'G:\Oktatás\Programozás 2\lab08\worker.ui'

#

# Created by: PyQt5 UI code generator 5.11.3

#

# WARNING! All changes made in this file will be lost!



import re

from PyQt5 import QtCore, QtGui, QtWidgets

import myClasses as mc



class Ui_MainWindow(object):



lsWorkers = []



def setupUi(self, MainWindow):

MainWindow.setObjectName("MainWindow")

MainWindow.resize(541, 600)

palette = QtGui.QPalette()

brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)

brush = QtGui.QBrush(QtGui.QColor(157, 155, 159))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)

brush = QtGui.QBrush(QtGui.QColor(147, 147, 147))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)

brush = QtGui.QBrush(QtGui.QColor(157, 155, 159))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)

brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)

brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)

MainWindow.setPalette(palette)

self.centralwidget = QtWidgets.QWidget(MainWindow)

self.centralwidget.setObjectName("centralwidget")

self.label = QtWidgets.QLabel(self.centralwidget)

self.label.setGeometry(QtCore.QRect(10, 10, 61, 16))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label.setFont(font)

self.label.setObjectName("label")

self.label_2 = QtWidgets.QLabel(self.centralwidget)

self.label_2.setGeometry(QtCore.QRect(10, 40, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_2.setFont(font)

self.label_2.setObjectName("label_2")

self.label_3 = QtWidgets.QLabel(self.centralwidget)

self.label_3.setGeometry(QtCore.QRect(10, 80, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_3.setFont(font)

self.label_3.setObjectName("label_3")

self.label_4 = QtWidgets.QLabel(self.centralwidget)

self.label_4.setGeometry(QtCore.QRect(10, 120, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_4.setFont(font)

self.label_4.setObjectName("label_4")

self.label_5 = QtWidgets.QLabel(self.centralwidget)

self.label_5.setGeometry(QtCore.QRect(10, 160, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_5.setFont(font)

self.label_5.setObjectName("label_5")

self.inName = QtWidgets.QLineEdit(self.centralwidget)

self.inName.setGeometry(QtCore.QRect(70, 0, 461, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inName.setFont(font)

self.inName.setObjectName("inName")

self.inID = QtWidgets.QLineEdit(self.centralwidget)

self.inID.setGeometry(QtCore.QRect(90, 40, 441, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inID.setFont(font)

self.inID.setObjectName("inID")

self.inAdd = QtWidgets.QLineEdit(self.centralwidget)

self.inAdd.setGeometry(QtCore.QRect(90, 80, 441, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inAdd.setFont(font)

self.inAdd.setObjectName("inAdd")

self.inPhone = QtWidgets.QLineEdit(self.centralwidget)

self.inPhone.setGeometry(QtCore.QRect(140, 120, 391, 31))

palette = QtGui.QPalette()

# brush = QtGui.QBrush(QtGui.QColor(141, 141, 141))

# brush.setStyle(QtCore.Qt.SolidPattern)

# palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)

# brush = QtGui.QBrush(QtGui.QColor(141, 141, 141))

# brush.setStyle(QtCore.Qt.SolidPattern)

# palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)

# brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))

# brush.setStyle(QtCore.Qt.SolidPattern)

# palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)

# self.inPhone.setPalette(palette)

font = QtGui.QFont()

font.setPointSize(12)

self.inPhone.setFont(font)

self.inPhone.setObjectName("inPhone")

self.inMail = QtWidgets.QLineEdit(self.centralwidget)

self.inMail.setGeometry(QtCore.QRect(70, 160, 461, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inMail.setFont(font)

self.inMail.setObjectName("inMail")

self.btnAdd = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd.setGeometry(QtCore.QRect(10, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd.setFont(font)

self.btnAdd.setObjectName("btnAdd")

self.btnAdd_2 = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd_2.setGeometry(QtCore.QRect(100, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd_2.setFont(font)

self.btnAdd_2.setObjectName("btnAdd_2")

self.btnAdd_3 = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd_3.setGeometry(QtCore.QRect(190, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd_3.setFont(font)

self.btnAdd_3.setObjectName("btnAdd_3")

self.btnAdd_4 = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd_4.setGeometry(QtCore.QRect(280, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd_4.setFont(font)

self.btnAdd_4.setObjectName("btnAdd_4")

self.label_6 = QtWidgets.QLabel(self.centralwidget)

self.label_6.setGeometry(QtCore.QRect(10, 250, 141, 21))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_6.setFont(font)

self.label_6.setObjectName("label_6")

self.list = QtWidgets.QListWidget(self.centralwidget)

self.list.setGeometry(QtCore.QRect(10, 280, 521, 291))

self.list.setFrameShape(QtWidgets.QFrame.Box)

self.list.setObjectName("list")

MainWindow.setCentralWidget(self.centralwidget)

self.menubar = QtWidgets.QMenuBar(MainWindow)

self.menubar.setGeometry(QtCore.QRect(0, 0, 541, 21))

self.menubar.setObjectName("menubar")

MainWindow.setMenuBar(self.menubar)

self.statusbar = QtWidgets.QStatusBar(MainWindow)

self.statusbar.setObjectName("statusbar")

MainWindow.setStatusBar(self.statusbar)



self.retranslateUi(MainWindow)

QtCore.QMetaObject.connectSlotsByName(MainWindow)



self.btnAdd.clicked.connect(self.btnAddClicked)

self.btnAdd_2.clicked.connect(self.editClicked)

self.btnAdd_3.clicked.connect(self.btnAddClicked)

self.btnAdd_4.clicked.connect(self.deleteItem)

# self.list.itemClicked.connect(self.itemClicked)



def retranslateUi(self, MainWindow):

_translate = QtCore.QCoreApplication.translate

MainWindow.setWindowTitle(_translate("MainWindow", "Workers"))

self.label.setText(_translate("MainWindow", "Name:"))

self.label_2.setText(_translate("MainWindow", "ID code:"))

self.label_3.setText(_translate("MainWindow", "Address:"))

self.label_4.setText(_translate("MainWindow", "Phone number:"))

self.label_5.setText(_translate("MainWindow", "Email:"))

self.inPhone.setText(_translate("MainWindow", "+36301234567"))

self.btnAdd.setText(_translate("MainWindow", "Add"))

self.btnAdd_2.setText(_translate("MainWindow", "Edit"))

self.btnAdd_3.setText(_translate("MainWindow", "Modify"))

self.btnAdd_4.setText(_translate("MainWindow", "Delete"))

self.label_6.setText(_translate("MainWindow", "List of persons:"))

self.reloadDatas()



def btnAddClicked(self):

try:

name = self.inName.text()

id = self.inID.text()

address = self.inAdd.text()

phone = self.inPhone.text()

email = self.inMail.text()



if len(name) == 0:

raise mc.MissingDataException('name')

if len(id) == 0:

raise mc.MissingDataException('ID number')

if len(address)==0:

raise mc.MissingDataException('address')

if len(phone)==0:

raise mc.MissingDataException('phone number')

if len(email)==0:

raise mc.MissingDataException('email address')



if len(phone) < 11 or len(phone) > 12 or not re.match('[+]36([0-9])',phone):

raise mc.PhoneNumberFormatException



if not re.match('([0-9a-zA-Z_.-]+@\w+(?:\.\w+))',email):

raise mc.EmailFormatException





except mc.MissingDataException as mse:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText(mse.__str__())

msg.exec()



except mc.PhoneNumberFormatException:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("The phone number is not in right format!")

msg.exec()



except mc.EmailFormatException:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("The email address is not in right format!")

msg.exec()



else:

if not self.inID.isReadOnly():

w = mc.Worker(name,id,address,phone,email)

if w not in self.lsWorkers:

self.lsWorkers.append(w)

self.lsWorkers.sort()

self.list.clear()

self.saveToFile()

for i in self.lsWorkers:

self.list.addItem(i.__str__())

else:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("This person has already applied at your company!")

msg.exec()

else:

for i in self.lsWorkers:

if i.getID() == self.inID.text():

self.lsWorkers.remove(i)

i.setName(name)

i.setAddress(address)

i.setPhone(phone)

i.setEmail(email)

self.lsWorkers.append(i)

self.lsWorkers.sort()

self.list.clear()

self.saveToFile()

self.inID.setReadOnly(False)

for j in self.lsWorkers:

self.list.addItem(j.__str__())





def editClicked(self,item):

if not self.list.currentItem():

msg = QtWidgets.QMessageBox()

msg.setWindowTitle("Warning!")

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("You should select any person from the list!")

msg.exec()

else:

item = self.list.currentItem()

tmp = item.text()

tmp = tmp.split('(')

id = tmp[1][:-1].split(" ")

id = id[1]

for i in self.lsWorkers:

if id == i.getID():

self.inName.setText(i.getName())

self.inID.setText(i.getID())

self.inAdd.setText(i.getAddress())

self.inPhone.setText(i.getPhone())

self.inMail.setText(i.getEmail())

self.inID.setReadOnly(True)



def deleteItem(self):

if not self.list.currentItem():

msg = QtWidgets.QMessageBox()

msg.setWindowTitle("Warning!")

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("You should select any person from the list!")

msg.exec()

else:

item = self.list.currentItem()

tmp = item.text()

tmp = tmp.split('(')

id = tmp[1][:-1].split(" ")

id = id[1]

for i in self.lsWorkers:

if id == i.getID():

self.lsWorkers.remove(i)

self.saveToFile()

self.list.clear()

for j in self.lsWorkers:

self.list.addItem(j.__str__())



def saveToFile(self):

outFile = open("database.txt","w")

for i in self.lsWorkers:

print('{};{};{};{};{}\n'.format(i.getName(),i.getID(),i.getAddress(),i.getPhone(),i.getEmail()),file=outFile)

outFile.close()



def reloadDatas(self):

inFile = open("database.txt","r")

for i in inFile:

if i.count(";") == 4:

tmp = i.split(';')

self.lsWorkers.append(mc.Worker(tmp[0],tmp[1],tmp[2],tmp[3],tmp[4][:-1]))

inFile.close()

self.lsWorkers.sort()

for i in self.lsWorkers:

self.list.addItem(i.__str__())







if __name__ == "__main__":

import sys

app = QtWidgets.QApplication(sys.argv)

MainWindow = QtWidgets.QMainWindow()

ui = Ui_MainWindow()

ui.setupUi(MainWindow)

MainWindow.show()

sys.exit(app.exec_())

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.
2
DT

Ничерта не понял, что у тебя за задача, но, полагаю, это реализуется через переопределение QCloseEvent:

void MainWindow::closeEvent(QCloseEvent *e)
{
    {
        QMessageBox::StandardButton askBtn = QMessageBox::question(this, "Выход" ,tr("Действительно хотите выйти?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
        if (askBtn == QMessageBox::Yes)
        {
                e->accept();
        }
       if (askBtn == QMessageBox::No)
            e->ignore();
    }
    else
        e->ignore();
}
ZhN
может так будет понятнее


# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'C:\Users\hallgato\PycharmProjects\workers.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets
from Worker import Worker

class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(332, 512)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(10, 10, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(10, 40, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(10, 70, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setGeometry(QtCore.QRect(10, 100, 111, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(10, 130, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.btnAdd = QtWidgets.QPushButton(self.centralwidget)
self.btnAdd.setGeometry(QtCore.QRect(10, 170, 75, 23))
self.btnAdd.setObjectName("btnAdd")
self.btnSelect = QtWidgets.QPushButton(self.centralwidget)
self.btnSelect.setGeometry(QtCore.QRect(90, 170, 75, 23))
self.btnSelect.setObjectName("btnSelect")
self.btnModify = QtWidgets.QPushButton(self.centralwidget)
self.btnModify.setGeometry(QtCore.QRect(170, 170, 75, 23))
self.btnModify.setObjectName("btnModify")
self.btnDelete = QtWidgets.QPushButton(self.centralwidget)
self.btnDelete.setGeometry(QtCore.QRect(250, 170, 75, 23))
self.btnDelete.setObjectName("btnDelete")
self.lsWorkers = QtWidgets.QListWidget(self.centralwidget)
self.lsWorkers.setGeometry(QtCore.QRect(10, 230, 311, 251))
self.lsWorkers.setObjectName("lsWorkers")
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setGeometry(QtCore.QRect(10, 190, 131, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.inName = QtWidgets.QLineEdit(self.centralwidget)
self.inName.setGeometry(QtCore.QRect(60, 10, 261, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inName.setFont(font)
self.inName.setObjectName("inName")
self.inID = QtWidgets.QLineEdit(self.centralwidget)
self.inID.setGeometry(QtCore.QRect(70, 40, 251, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inID.setFont(font)
self.inID.setObjectName("inID")
self.inAddress = QtWidgets.QLineEdit(self.centralwidget)
self.inAddress.setGeometry(QtCore.QRect(80, 70, 241, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inAddress.setFont(font)
self.inAddress.setObjectName("inAddress")
self.inPhone = QtWidgets.QLineEdit(self.centralwidget)
self.inPhone.setGeometry(QtCore.QRect(120, 100, 201, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inPhone.setFont(font)
self.inPhone.setObjectName("inPhone")
self.inEmail = QtWidgets.QLineEdit(self.centralwidget)
self.inEmail.setGeometry(QtCore.QRect(60, 130, 261, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inEmail.setFont(font)
self.inEmail.setObjectName("inEmail")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 332, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)

self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)

def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Worker"))
self.label.setText(_translate("MainWindow", "Name:"))
self.label_2.setText(_translate("MainWindow", "ID code:"))
self.label_3.setText(_translate("MainWindow", "Address:"))
self.label_4.setText(_translate("MainWindow", "Phone number:"))
self.label_5.setText(_translate("MainWindow", "Email:"))
self.btnAdd.setText(_translate("MainWindow", "Add new"))
self.btnSelect.setText(_translate("MainWindow", "Select"))
self.btnModify.setText(_translate("MainWindow", "Modify"))
self.btnDelete.setText(_translate("MainWindow", "Delete"))
self.label_6.setText(_translate("MainWindow", "List of employees:"))


if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
class Worker:

def __init__(self, name, id, address, phone, email):
self.__name = name
self.__id = id
self.__address = address
self.__phone = phone
self.__email = email

def getName(self):
return self.__name

def getID(self):
return self.__id

def getAddress(self):
return self.__address

def getPhone(self):
return self.__phone

def getEmail(self):
return self.__email

def setName(self, p):
self.__name = p

def setAddress(self, p):
self.__address = p

def setPhone(self, p):
self.__phone = p

def setEmail(self, p):
self.__email = p

def __str__(self):
return self.__name + " (ID: " + self.__id + ")"

def __eq__(self, other):
return self.getID() == other.getID()

def __le__(self, other):
if self.getName() == other.getName():
return self.getID() < other.getID()
else:
return self.getName() < other.getName()
def __gt__(self, other):
return self.getName() > other.getName()

Comments

Only authorized users can post comments.
Please, Log in or Sign up
Timeweb

Let me recommend you the excellent hosting on which EVILEG is located.

For many years, Timeweb has been proving his stability.

For projects on Django I recommend VDS hosting

View Hosting
C

C++ - Test 005. Structures and Classes

  • Result:75points,
  • Rating points2
AE

C++ - Test 005. Structures and Classes

  • Result:25points,
  • Rating points-10
m

C++ - Тест 003. Условия и циклы

  • Result:28points,
  • Rating points-10
Last comments
AB

Qt/C++ - Lesson 008. QDataWidgetMapper - Working with the database via a widget

Понял сам так - происходит через setTable() "Sets the database table on which the model operates to tableName. Does not select data from the table, but fetches its field information", а затем че…
AB

Qt/C++ - Lesson 008. QDataWidgetMapper - Working with the database via a widget

Начал делать что-то похожее, но без sql. Не очень понимаю, что делает mapper->setCurrentModelIndex(model->index(row,0)); Вернее не понимаю вот что: откуда он берёт данные, кот…
IV

Qt/C++ - Lesson 048. QThread — How to work with threads using moveToThread

Не получается сделать connect, получаю гору ошибок. В чем может быть дело ?
IV

Qt/C++ - Lesson 034. Echo Server based on QTcpServer

Добрый день, разрешите вопрос: во всех примерах работы с QTcpServer его всегда создают в main.cpp, нет ли возможности корректно сохдать его в MainWindow.cpp ? Просто если перенести код…
D

Django - Tutorial 001. Deploying a site on Django + PostgreSQL + Gunicorn + Nginx

А почему нельзя? Где можно об этом почитать? Киньте, пожалуйста, в меня ссылкой.
Now discuss on the forum

Отправка картинки в DRF

Да я знаю ;-) используйте, пожалуйста, в следующий раз средства сайта. В данном случае сторонний сервис ни к месту.
  • BlinCT
  • April 9, 2021, 8:15 a.m.

Работа с созданным обьектом qml через Qt.createComponent

Добрый день. И как это решает мою проблему?) Item{ id: root property var model property bool headers : false property string objectName property int iMaxWidthRow:…

Проект на cmake и QCharts

Кто-нибудь сталкивался с проблемой скроллинша чарта ? если допустим увеличить в ширину сам чарт, как скроолить весь чарт а не только его видимую часть ?

Ожидание ввода QLineEdit

Попробовал, крешится напрочь... Такое чуство что таймер не удаляется.... и к нему снова идет обращение....

QScrollArea dynamically add QCheckBoxes

Всё правильно. Это просто спамер, который отправился в вечный бан.
About
Services
© EVILEG 2015-2020
Recommend hosting TIMEWEB